package org.apache.ocean;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 *
 * @author jasonr
 */
public class HttpTimeout {
  public int socketTimeout;
  public int httpTimeout;
  public int retries;
  public TimeoutState timeoutState;
  
  public String toString() {
    return ReflectionToStringBuilder.toString(this);
  }
  
  public HttpTimeout(int socketTimeout, int httpTimeout) {
    this.socketTimeout = socketTimeout;
    this.httpTimeout = httpTimeout;
  }
  
  public HttpTimeout(int socketTimeout, int httpTimeout, int retries) {
    this.socketTimeout = socketTimeout;
    this.httpTimeout = httpTimeout;
    this.retries = retries;
  }
  
  public HttpTimeout(int socketTimeout, int httpTimeout, TimeoutState timeoutState) {
    this.socketTimeout = socketTimeout;
    this.httpTimeout = httpTimeout;
    this.timeoutState = timeoutState;
  }
  
  public HttpTimeout(int socketTimeout, int httpTimeout, int retries, TimeoutState timeoutState) {
    this.socketTimeout = socketTimeout;
    this.httpTimeout = httpTimeout;
    this.retries = retries;
    this.timeoutState = timeoutState;
  }
}
